package com.example.scala.chapter4

/**
 *
 * Description:
 *
 * Create by lucienoz on 2021/10/18.
 * Copyright © 2021 lucienoz. All rights reserved.
 */
object chapter06 {
	def main(args : Array[String]) : Unit = {

		val function : ((String, Int) => String) => String = foo _
		foo( _ * _  )

		val str : String = List ( ("a", 1), ("a", 1), ("b", 1) ).map ( _._1 ).mkString ( "," )
		println(str)

	}

	def foo(bar:(String,Int)=>String):String={
		val str : String = bar ( "foo",2)
		println ( str )
		str
	}

}
